package com.benmei.weike.dao;

import com.benmei.weike.dto.mcCourse.McCoursewareDto;
import com.benmei.weike.entity.ClassRoom;
import com.benmei.weike.web.vo.my.ClassRoomPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ClassRoomDao {
    int insert(@Param("pojo") ClassRoom pojo);

    int insertSelective(@Param("pojo") ClassRoom pojo);

    int insertList(@Param("pojos") List<ClassRoom> pojo);

    int update(@Param("pojo") ClassRoom pojo);

    ClassRoom findById(Integer roomId);

    ClassRoomPageVo findPageRangeByRoomId(@Param("room_id")Integer room_id);

    List<McCoursewareDto> findPptsForClassRoom(@Param("cou_id")Integer cou_id, @Param("start_page")Integer start_page, @Param("end_page")Integer end_page);
}
